<#macro showErrorMessage local>
            <#if 
                fieldErrors?has_content &&
                fieldErrors[local]?exists
            >
                <font color="red"><b>
                    <#--
                    ${fieldErrors[local][0]}
                    -->
                    <#list fieldErrors[local] as error>
                        ${error}
                    </#list>
                </b></font>
            </#if>
</#macro>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>${action.getText('web.page.title')}</title>
		<style type="text/css">BODY { FONT: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif }
	P { FONT: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif }
	TD { FONT: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif }
	TR { FONT: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif }
	OL { FONT: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif }
	UL { FONT: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif }
	HTML { SCROLLBAR-ARROW-COLOR: #eef0f2; SCROLLBAR-TRACK-COLOR: #10375d; SCROLLBAR-BASE-COLOR: #086693 }
	BODY { BACKGROUND: #10375d; COLOR: #dee0e2 }
	.tborder { BORDER-RIGHT: 4px ridge; BORDER-TOP: 4px ridge; BORDER-LEFT: 4px ridge; BORDER-BOTTOM: 4px ridge }
	.tcat { BORDER-RIGHT: 2px outset; BORDER-TOP: 2px outset; BACKGROUND: url(../Fortune/images/tblhead_bg.gif) #eef0f2; BORDER-LEFT: 2px outset; COLOR: #001f30; BORDER-BOTTOM: 2px outset }
	.tcat A:link { COLOR: #001f30 }
	.tcat A:visited { COLOR: #001f30 }
	.tcat A:active { COLOR: #001f30 }
	TD.thead { BORDER-RIGHT: 1px outset; PADDING-RIGHT: 4px; BORDER-TOP: 1px outset; PADDING-LEFT: 4px; FONT-WEIGHT: bold; BACKGROUND: url(../Fortune/images/colheader_bg.gif) #dee0e2; PADDING-BOTTOM: 2px; BORDER-LEFT: 1px outset; COLOR: #001f30; PADDING-TOP: 2px; BORDER-BOTTOM: 1px outset }
	.thead TD { BORDER-RIGHT: 1px outset; PADDING-RIGHT: 4px; BORDER-TOP: 1px outset; PADDING-LEFT: 4px; FONT-WEIGHT: bold; BACKGROUND: url(../Fortune/images/colheader_bg.gif) #dee0e2; PADDING-BOTTOM: 2px; BORDER-LEFT: 1px outset; COLOR: #001f30; PADDING-TOP: 2px; BORDER-BOTTOM: 1px outset }
	.logincontrols { BORDER-RIGHT: 1px outset; BORDER-TOP: 1px outset; BACKGROUND: #dee0e2; BORDER-LEFT: 1px outset; COLOR: #001f30; BORDER-BOTTOM: 1px outset }
	.navbody { BACKGROUND: url(../Fortune/images/navbody_bg.gif) #086693; COLOR: #ffffff; SCROLLBAR-ARROW-COLOR: #eef0f2; SCROLLBAR-TRACK-COLOR: #0381b1; SCROLLBAR-BASE-COLOR: #008fbf }
	.stylebg { BACKGROUND: url(../Fortune/images/navbody_bg.gif) #086693; COLOR: #ffffff; SCROLLBAR-ARROW-COLOR: #eef0f2; SCROLLBAR-TRACK-COLOR: #0381b1; SCROLLBAR-BASE-COLOR: #008fbf }
		</style>
   <script type="text/javascript" src="./js/vbulletin_md5.js"></script>
   <script type="text/javascript" src="./js/vbulletin_global.js"></script>
   <script type="text/javascript">
	<!--
	function js_show_options(objectid, clickedelm)
	{
		fetch_object(objectid).style.display = "";
		clickedelm.disabled = true;
	}
	function js_fetch_url_append(origbit,addbit)
	{
		if (origbit.search(/\?/) != -1)
		{
			return origbit + '&' + addbit;
		}
		else
		{
			return origbit + '?' + addbit;
		}
	}
	function js_do_options(formobj)
	{
		if (typeof(formobj.nojs) != "undefined" && formobj.nojs.checked == true)
		{
			formobj.url.value = js_fetch_url_append(formobj.url.value, 'nojs=1');
		}
		return true;
	}
	
	function init(){
		if("" == document.forms.loginform.username.value){
			document.forms.loginform.username.focus();
		}else{
			document.forms.loginform.password.focus()
		}
		max.click();
	}

	//-->
	
	</script>
	<script language="JavaScript"> 
<!-- 
self.moveTo(0,0) 
self.resizeTo(screen.availWidth,screen.availHeight) 
//--> 
</script>
	
<object id="max" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="Maximize"> 
</object> 
	</HEAD>
	<body onload="init()" style="margin:0px">

		<form name="loginform" method="post" action="login.do" language="javascript" id="loginform" onsubmit="md5hash(password, md5password); js_do_options(this)">
		<input type="hidden" name="returnurl" value="${returnurl!}" />
		<input type="hidden" name="md5password" value="" />
			<p>&nbsp;</p>
			<p>&nbsp;</p>
			<table class="tborder" cellSpacing="0" cellPadding="0" width="450" align="center" border="0">
				<tr>
					<td>
						<!-- header -->
						<div class="tcat" style="PADDING-RIGHT: 4px; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; PADDING-TOP: 4px; TEXT-ALIGN: left"><b>登录</b></div>
						<!-- /header -->
						<!-- logo and version -->
						<table class="navbody" cellSpacing="0" cellPadding="4" width="100%" border="0">
							<tr vAlign="bottom">
								<td><img src="images/logo.png"></td>
								<td>${copyright!}</td>
							</tr>
						</table>
						<table class="logincontrols" cellSpacing="0" cellPadding="4" width="100%" border="0">
							<COLGROUP>
								<col style="WHITE-SPACE: nowrap; TEXT-ALIGN: right" width="50%">
								</col>
								<col>
								</col>
								<col width="50%">
								</col>
								<TBODY>
									<tr>
										<td>${action.getText('web.login.username')}:</td>
										<td><input name="username" type="text" id="username" value="<#if username?exists>${username}</#if>" style="font-weight:bold;width:250px;" /></td>
										<td><@showErrorMessage local="username"/>&nbsp;</td>
									</tr>
									<tr>
										<td>${action.getText('web.login.password')}:</td>
										<td><input name="password" type="password" id="password" style="font-weight:bold;width:250px;" /></td>
										<td><@showErrorMessage local="password"/>&nbsp;</td>
									</tr>
									<tr>
										<td align="left" colSpan="3"><font color="red"><B>${message!}</B></font></td>
									</tr>
									<tr>
										<td align="center" colSpan="3"><input type="submit" name="Button1" value=" ${action.getText('web.login.button.login')} " id="Button1" />&nbsp;<input type="reset" name="Button2" value=" ${action.getText('web.login.button.reset')} " id="Button2" />
										</td>
									</tr>
								</table>
					</td>
				</tr>
			</table>
      

		</form>
	</body>
</HTML>
